<template>
    
</template>

<script>
    import {mapGetters} from "vuex";
    import {getIdmAccessToken} from "@/api/user.js"

    export default {
        name: "getToken",
        data () {
            return {
                getCode:''
            };
        },
        created () {
            console.log(this.$route.query)
            this.getCode = this.$route.query.code;
            alert(this.getCode)
            getIdmAccessToken(this.getCode).then(res => {
                if(res.code == 200){
                    console.log(res.data);
                    alert(JSON.stringify(res.data));
                }
            })
        },
        mounted () { },
        computed: {
            ...mapGetters(["tagWel"])
        },
        props: [],
        methods: {
        }
    }
</script>

<style scoped>

</style>